package my.edu.model.bills.bound.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@TableName("disassembly_order")
public class DisassemblyOrder {//拆卸单
    @TableId(type = IdType.AUTO)
    private Long id;
    private String orderNo;
    private BigDecimal disassemblyCost;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate orderDate;
    private Long salespersonId;
    private String salespersonName;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate deliveryDate;
    private String remark;
    private Integer isAudited;
    private Long disassemblyItemId;
    private String disassemblyItemName;
    private String unit;
    private String brand;
    private String productCategory;
    private String productAttributes;
    private Long warehouseId;
    private String warehouseName;
    private Integer availableStock;
    private Integer quantity;
    private BigDecimal outboundUnitCost;
    private BigDecimal outboundCost;
    private String productRemark;
    @TableField(fill = FieldFill.INSERT)
    private Long createdBy;
    @TableField(fill = FieldFill.INSERT)
    private String createdName;
    private Long auditorId;
    private String auditorName;
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.UPDATE)
    private Long updatedBy;
}